home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
comm
/
www
/
1stLinkChecker.lha
/
1st_LinkChecker
/
LinkChecker.doc
< prev
next >
Wrap
Text File
|
1997-08-08
|
5KB
|
154 lines
******************************************
* *
*
Link Checker
V1.3 (08/07/97) *
* © Heiko Schröder (age@thepentagon.com) *
* *
******************************************
Some words:
In the last time i created my »HomeBase of Age«
(see at "http://yi.com/home/SchroederHeiko").
So i had to check manually all links in these (S)HTM(L) pages. A hard work ;-(
I looked for a tool at AMINET to solve this problem. No chances. I did found
programs to check the correctness of the HTML syntax, but no tool for checking
the local links at my pages.
So i started the programming in ARexx.
And now you have the result on YOUR AMIGA.
The theory of LinkChecker:
This ARexx script looks for local links at your (S)HTM(L) pages and checks
the existence of these linked pages.
It checks local links with this syntax:
HREF="example.(s)htm(l)"> * pages (NORMAL, EMBEDDED)
HREF=example.(s)htm(l)>
HREF=../../../age/example.(s)htm(l)>
SRC="example.gif(jpg,png)"> * graphics (IMG, FIG)
SRC=example.gif(jpg,png)>
SRC=example.gif(jpg,png)>
SRC=../../../age/example.gif(l)>
But it ignores the anker like this:
<A HREF="example.(s)htm(l)#anker") * anker links
It dont check the following non local links:
Mailto:
http://
ftp://
gopher://
news:
about:
The theory of ExtLinkChecker:
This is an script to look for external links at your (S)HTM(L) pages and
check it via the browser AWEB.
It dont check the local links in html pages.
It checks external links with this correct syntax:
"http://......" http://......
"ftp://......." ftp://.......
"gopher://...." gopher://....
It doesn't check:
mailto:
news:
about:
The requirement:
C:List | © by Commodore / Amiga Technologies
C:Delete | & Amiga International
Sys:System/RexxMast | © 1987 by William S. Hawes
Libs:rexxreqtools.library | © 1994 by Rafael D'Halleweyn
The usage:
Double click at the icon of »LinkCheck«. It opens a requester where you
have to select the directory with the (S)HTM(L) pages.
Thats all.
The output
The script checks the (S)HTM(L) files which was found at the selected
directory. It tells you the checked files, the founded links and the
link errors.
e.g.:
Files: 14 - Links: 127 - Errors: 0
If the output is "Errors: 0", then all links are okay.
If not, you have a problem ;-)
1.) A requester will be opened with the error informations.
The output :
Errors : displayed/unknown failed links
File : the file, where the failed link is located
Link : name of linked file
Line : line of file
The buttons:
Prev : previous failed link
Next : next failed link
I know : the displayed error will be cleared
Leave : close the requester
2.) You can look at the file T:LinkCheckResult. There are listed all failed
links.
e.g.:
HD1:Homepages/Age/main.html - next.html - line 123
It tells you, that the link from main.html to next.html at line 123 dont
exist.
The speed
of Local LinkChecker at my 68020/28MHz
name of pages | files | size | links | time in sec
| | in bytes | | V1.0* V1.3
---------------------------------------------------------------
Waltons-Issue2-Files | 7 | 13.779 | 44 | 5.46* 6.54
SelfHTML-Files V4.0 | 68 | 608.020 | 3318 | 281.14* 369.28
*) V1.0 didnt check really all links. V1.3 do it.
I believe you cant check it faster manually :-)
The history
Version Date Size Some words
-----------------------------------------------------------------------------
V1.3 08/07/97 * ExtLinkChecker
- new script to check EXTERNAL links via AWEB
- now also more than 1 links at one line will be
checked (sorry, but other versions checked
only the first link at one line)
- second public release
V1.2 08/01/97 - it checks also "...shtm" & "...shtml" files
"<FIG SRC=xxx.xxx>" ; "<EMBEDDED HREF=xxx.xxx>"
- if link errors was found, a requester
shows the missed files
thanks for inspirations to
- code optimized
- not released
V1.1 07/30/97 3260 - now checks also e.g.: "../../../../x.html"
thanks for inspirations to Brian Hosty
- dont check info files (e.g.: x.html.info) ;-)
- code optimized
- not released
V1.0 07/24/97 3018 - the first public release on Aminet
The author
______________________________________
/ \
\ Heiko Schro"der (Age) /
/ age@thepentagon.com \
\ /
/ http://yi.com/home/SchroederHeiko \
\______________________________________/